import request from '@/utils/request'

// 查询商品类目，列表
export function getCartList(params) {
  return request({
    url: '/oms/cart/list',
    method: 'get',
    params
  })
}
export function getCartByToken(token) {
  return request({
    url: '/oms/cart/list/user',
    method: 'get',
    params: { token }
  })
}
export function delectCartBatch(data) {
  return request({
    url: '/oms/cart/del/batch',
    method: 'post',
    data
  })
}

export function addUserCart(data) {
  return request({
    url: '/oms/cart/add',
    method: 'post',
    data
  })
}
export function updateUserCart(data) {
  return request({
    url: '/oms/cart/update',
    method: 'post',
    data
  })
}

export function checkCart(params) {
  return request({
    url: '/oms/cart/check',
    method: 'get',
    params
  })
}

